﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Contract.Data;

namespace DotNetChatServer.Interfaces
{
    public interface IMessageStorage
    {
        void DeleteMessage(Guid messsageId);
        void AddMessage(ChatMessage msg);
        List<ChatMessage> GetMessages(DateTime from, DateTime to);
        List<ChatMessage> GetMessages(DateTime from);
        List<ChatMessage> GetMessages();
        void ClearMessages(DateTime From, DateTime to);
        void ClearMessages(DateTime to);
        void ClearMessages();
    }
}
